package HomeWork3_17;

import java.util.Scanner;

public class HomeWork3_17_2 {
    public static void main(String[] args) {
        System.out.println("请给出十个学生成绩：");
        int[] a = new int [10];
        Scanner sc = new Scanner(System.in);
        int mx = 0, mn = 100;
        for (int i = 0; i < 10; i++) {
            System.out.print("学生"+(i+1) + "：");
            a[i] = sc.nextInt();
            mx = Math.max(a[i], mx);
            mn = Math.min(a[i], mn);
        }
        System.out.println();
        for (int i = 0; i < 10; i++) {
            System.out.print("学生"+(i+1) + "：");
            if(a[i] >= 90)
                System.out.println("优秀");
            else if(a[i] >= 80)
                System.out.println("良好");
            else if(a[i] >= 70)
                System.out.println("中等");
            else if(a[i] >= 60)
                System.out.println("及格");
            else
                System.out.println("不及格");
        }
        System.out.println();
        System.out.println("最高分为：" + mx);
        System.out.println("最低分为：" + mn);
    }
}
